# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         hw01
# Description:
# Author:       98745
# Date:         2019/1/17
#-------------------------------------------------------------------------------
numbers=[1,2,3,4,5]
i=0
while 1:
    x = input("请输入一个整数：")
    if x == "end":
        break
    numbers[i]=int(x)
    i=i+1
print(numbers)
j=1
k=0
while k<i:
    while j<i:
        if numbers[k]<numbers[j]:
            num=numbers[k]
            numbers[k]=numbers[j]
            numbers[j]=num
        j=j+1
    k=k+1
    j=k+1
print(numbers)


